package com.ynny.chapter04.dao;

import com.ynny.chapter04.entity.User;

import java.util.List;

public interface UserDao {

    //登录接口

    //根据用户名和密码查询用户信息

    User selectUserByUserNameAndPassword(String userName, String password);


    User selectUserByUserName(String userName);

    int insertUser(User user);

    List<User> selectAllUsers();

}
